﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_RepMan_History.aspx.cs" Inherits="Admin_RepMan_History" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
     <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css" />
    <link rel="stylesheet" href="./css/xadmin.css" />
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/cookie.js"></script>
 <style>
        .all{
            width:95%;
            margin-left:2.5%
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <br />
        <div class="all"> 
        <xblock style="height:35px">
       <%-- <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button> --%>
        <span class="x-right" style="line-height:40px">共有数据：<asp:Label ID="MsgNum" runat="server" Text="MsgNum"></asp:Label> 条</span>
      </xblock>
        <asp:Label ID="LabelText" runat="server" Text="Label"></asp:Label>
         </div>
    </form>
   <%-- <form id="form1" runat="server">
        <div>
            <asp:SqlDataSource ID="SqlDataSource1"  runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringProManage %>" DeleteCommand="UPDATE [Repair] SET [flag]=0 WHERE [rep_id] = @rep_id" InsertCommand="INSERT INTO [Repair] ([pro_num], [pro_location], [date_inform], [rep_cause], [condition], [date_rep], [rep_perId], [rep_program]) VALUES (@pro_num, @pro_location, @date_inform, @rep_cause, @condition, @date_rep, @rep_perId, @rep_program)" SelectCommand="SELECT [rep_id], [pro_num], [pro_location], [date_inform], [rep_cause],  [date_rep], [rep_perId], [rep_program] FROM [Repair] where ([flag]=1) and ([condition]=N'维修完成')" UpdateCommand="UPDATE [Repair] SET [pro_num] = @pro_num, [pro_location] = @pro_location, [date_inform] = @date_inform, [rep_cause] = @rep_cause, [date_rep] = @date_rep, [rep_perId] = @rep_perId, [rep_program] = @rep_program WHERE ([rep_id] = @rep_id)and ([flag]=1)">
                <DeleteParameters>
                    <asp:Parameter Name="rep_id" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="pro_num" Type="String" />
                    <asp:Parameter Name="pro_location" Type="String" />
                    <asp:Parameter Name="date_inform" Type="String" />
                    <asp:Parameter Name="rep_cause" Type="String" />
                    <asp:Parameter Name="condition" Type="String" />
                    <asp:Parameter Name="date_rep" Type="String" />
                    <asp:Parameter Name="rep_perId" Type="String" />
                    <asp:Parameter Name="rep_program" Type="String" />
                </InsertParameters>
                <UpdateParameters>
                    <asp:Parameter Name="pro_num" Type="String" />
                    <asp:Parameter Name="pro_location" Type="String" />
                    <asp:Parameter Name="date_inform" Type="String" />
                    <asp:Parameter Name="rep_cause" Type="String" />
                    <asp:Parameter Name="date_rep" Type="String" />
                    <asp:Parameter Name="rep_perId" Type="String" />
                    <asp:Parameter Name="rep_program" Type="String" />
                    <asp:Parameter Name="rep_id" Type="Int32" />
                </UpdateParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" class="GridView" AutoGenerateColumns="False" DataKeyNames="rep_id" DataSourceID="SqlDataSource1" Width="1054px" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical">
                <AlternatingRowStyle BackColor="#CCCCCC" />
                <Columns>
                    <asp:BoundField DataField="rep_id" HeaderText="报修单号" InsertVisible="False" ReadOnly="True" SortExpression="rep_id" />
                    <asp:BoundField DataField="pro_num" HeaderText="报修设备编号" SortExpression="pro_num" />
                    <asp:BoundField DataField="pro_location" HeaderText="报修设备地点" SortExpression="pro_location" />
                    <asp:BoundField DataField="date_inform" HeaderText="报修时间" SortExpression="date_inform" />
                    <asp:BoundField DataField="rep_cause" HeaderText="报修原因" SortExpression="rep_cause" />
                    <asp:BoundField DataField="date_rep" HeaderText="修理时间" SortExpression="date_rep" />
                    <asp:BoundField DataField="rep_perId" HeaderText="维修工程师编号" SortExpression="rep_perId" />
                    <asp:BoundField DataField="rep_program" HeaderText="维修过程" SortExpression="rep_program" />
                    <asp:CommandField HeaderText="工具栏" ShowDeleteButton="True" />
                </Columns>
                <FooterStyle BackColor="#CCCCCC" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#808080" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#383838" />
            </asp:GridView>
        </div>
    </form>--%>
</body>
</html>
